﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test Lib</title>
    <!--script type="text/javascript" src="jquery-1.2.6-vsdoc.js"></script>
    <script type="text/javascript" src="VeryCD4Douban.user.js"></script-->
<script type="text/javascript" src="gears_init.js"></script>
<script type="text/javascript">
    var options = {
        'url': 'http://1986.appspot.com/',
        'type': 'GET'
    };
    
    var workerPool = google.gears.factory.create('beta.workerpool');

    workerPool.onmessage = function(a, b, message) {
        //alert('received: ' + message.body);
        document.write(message.body);
    };

    var childWorkerId = workerPool.createWorkerFromUrl('http://ajaxproxy.appspot.com/gears/gears_proxy.js');
    workerPool.sendMessage(options, childWorkerId);
</script>
</head>
<body>
</body>
</html>
